// 主界面
;define(function(require, exports, module) {
    'use strict';
    var util = require("util");
    var base = require("base");
    var leftMenu = require("../leftMenu/leftMenu");
    var topMenu = require("../topMenu/topMenu");
    var footer = require("../footer/footer_main");
    var router = require("../hash/pageRouter");
    var creditManage_css = require("./creditManage.css");
    var dialog = require("dialog");
    var validate = require("validate");
    var pageIndex = 1,
        pageSize = 10,
        totalPageCount = 1,
        totalRecordCount = 0; //分页初始化
    var imgSrc;
    var init = function(){
    	footer.init();  
    	$("#footer").removeClass("none");
    	leftMenu.init(10);
    	topMenu.init(9);
    	router.init();
    	$(".table-section").removeClass("none");
    	$(".footer").removeClass("none");
		initEvent();
    };
    
	var initEvent = function(){
		//若未登录，则返回登陆页面
		if(base.getData("sid")==null||base.getData("sid")==""||base.getData("sid")==undefined){
			location.href="../login/login.html";
		}
		
    };
    
    return {
        init:init
    };
});